#include "board.h"
#include "matrix.h"
#include "bflb_mtimer.h"
#include "bflb_gpio.h"
#include "log.h"

int main(void)
{
	board_init();
	uint16_t key_val = 0;
    char key_char;
    matrix_keys_init();
	LOG_I("matrix_keys_init\r\n");
	while (1)
	{
        key_val = get_key_val();
        key_char = val2char(key_val);
        LOG_I("%x: \t %c\r\n", key_val, key_char);
        bflb_mtimer_delay_ms(10);
	}
}


